<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<script>
var setting1 = {
		check: {
			enable: true
		},
		data: {
			simpleData: {
				enable: true
			}
		}
};  
	  
var treeNodes1;
$(document).ready(function(){
	$.ajax({
		type:'GET',
		url:'/MSAPortal/Portalrole/addRole.do',
		contentType : 'application/json',
		dataType : "json",
		success:function(data){
			treeNodes1=data;
			edztree = $.fn.zTree.init($("#edtree"), setting1, treeNodes1);
		},
		error:function(){
		 alert("错误");	
		}
	});
	
});
</script>
<div class="col-sm-10">
	<ul id="edtree" class="edztree" style="width:460px; overflow:auto;"></ul>
</div>